home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFCompositeDataSource.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  198 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFCompositeDataSource.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFCompositeDataSource_h__
  6. #define __gen_nsIRDFCompositeDataSource_h__
  7.  
  8.  
  9. #ifndef __gen_nsIRDFDataSource_h__
  10. #include "nsIRDFDataSource.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsISimpleEnumerator; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIRDFCompositeDataSource */
  21. #define NS_IRDFCOMPOSITEDATASOURCE_IID_STR "96343820-307c-11d2-bc15-00805f912fe7"
  22.  
  23. #define NS_IRDFCOMPOSITEDATASOURCE_IID \
  24.   {0x96343820, 0x307c, 0x11d2, \
  25.     { 0xbc, 0x15, 0x00, 0x80, 0x5f, 0x91, 0x2f, 0xe7 }}
  26.  
  27. /**
  28.  * An nsIRDFCompositeDataSource composes individual data sources, providing
  29.  * the illusion of a single, coherent RDF graph.
  30.  */
  31. class NS_NO_VTABLE nsIRDFCompositeDataSource : public nsIRDFDataSource {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFCOMPOSITEDATASOURCE_IID)
  35.  
  36.   /**
  37.      *
  38.      * Set this value to <code>true</code> if the composite datasource
  39.      * may contains at least one datasource that has <em>negative</em>
  40.      * assertions. (This is the default.)
  41.      *
  42.      * Set this value to <code>false</code> if none of the datasources
  43.      * being composed contains a negative assertion. This allows the
  44.      * composite datasource to perform some query optimizations.
  45.      *
  46.      * By default, this value is <code>true</true>.
  47.      */
  48.   /* attribute boolean allowNegativeAssertions; */
  49.   NS_IMETHOD GetAllowNegativeAssertions(PRBool *aAllowNegativeAssertions) = 0;
  50.   NS_IMETHOD SetAllowNegativeAssertions(PRBool aAllowNegativeAssertions) = 0;
  51.  
  52.   /**
  53.      * Set to <code>true</code> if the composite datasource should
  54.      * take care to coalesce duplicate arcs when returning values from
  55.      * queries. (This is the default.)
  56.      *
  57.      * Set to <code>false</code> if the composite datasource shouldn't
  58.      * bother to check for duplicates. This allows the composite
  59.      * datasource to more efficiently answer queries.
  60.      *
  61.      * By default, this value is <code>true</code>.
  62.      */
  63.   /* attribute boolean coalesceDuplicateArcs; */
  64.   NS_IMETHOD GetCoalesceDuplicateArcs(PRBool *aCoalesceDuplicateArcs) = 0;
  65.   NS_IMETHOD SetCoalesceDuplicateArcs(PRBool aCoalesceDuplicateArcs) = 0;
  66.  
  67.   /**
  68.      * Add a datasource the the composite data source.
  69.      * @param aDataSource the datasource to add to composite
  70.      */
  71.   /* void AddDataSource (in nsIRDFDataSource aDataSource); */
  72.   NS_IMETHOD AddDataSource(nsIRDFDataSource *aDataSource) = 0;
  73.  
  74.   /**
  75.      * Remove a datasource from the composite data source.
  76.      * @param aDataSource the datasource to remove from the composite
  77.      */
  78.   /* void RemoveDataSource (in nsIRDFDataSource aDataSource); */
  79.   NS_IMETHOD RemoveDataSource(nsIRDFDataSource *aDataSource) = 0;
  80.  
  81.   /**
  82.      * Retrieve the datasources in the composite data source.
  83.      * @return an nsISimpleEnumerator that will enumerate each
  84.      * of the datasources in the composite
  85.      */
  86.   /* nsISimpleEnumerator GetDataSources (); */
  87.   NS_IMETHOD GetDataSources(nsISimpleEnumerator **_retval) = 0;
  88.  
  89. };
  90.  
  91. /* Use this macro when declaring classes that implement this interface. */
  92. #define NS_DECL_NSIRDFCOMPOSITEDATASOURCE \
  93.   NS_IMETHOD GetAllowNegativeAssertions(PRBool *aAllowNegativeAssertions); \
  94.   NS_IMETHOD SetAllowNegativeAssertions(PRBool aAllowNegativeAssertions); \
  95.   NS_IMETHOD GetCoalesceDuplicateArcs(PRBool *aCoalesceDuplicateArcs); \
  96.   NS_IMETHOD SetCoalesceDuplicateArcs(PRBool aCoalesceDuplicateArcs); \
  97.   NS_IMETHOD AddDataSource(nsIRDFDataSource *aDataSource); \
  98.   NS_IMETHOD RemoveDataSource(nsIRDFDataSource *aDataSource); \
  99.   NS_IMETHOD GetDataSources(nsISimpleEnumerator **_retval); 
  100.  
  101. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  102. #define NS_FORWARD_NSIRDFCOMPOSITEDATASOURCE(_to) \
  103.   NS_IMETHOD GetAllowNegativeAssertions(PRBool *aAllowNegativeAssertions) { return _to GetAllowNegativeAssertions(aAllowNegativeAssertions); } \
  104.   NS_IMETHOD SetAllowNegativeAssertions(PRBool aAllowNegativeAssertions) { return _to SetAllowNegativeAssertions(aAllowNegativeAssertions); } \
  105.   NS_IMETHOD GetCoalesceDuplicateArcs(PRBool *aCoalesceDuplicateArcs) { return _to GetCoalesceDuplicateArcs(aCoalesceDuplicateArcs); } \
  106.   NS_IMETHOD SetCoalesceDuplicateArcs(PRBool aCoalesceDuplicateArcs) { return _to SetCoalesceDuplicateArcs(aCoalesceDuplicateArcs); } \
  107.   NS_IMETHOD AddDataSource(nsIRDFDataSource *aDataSource) { return _to AddDataSource(aDataSource); } \
  108.   NS_IMETHOD RemoveDataSource(nsIRDFDataSource *aDataSource) { return _to RemoveDataSource(aDataSource); } \
  109.   NS_IMETHOD GetDataSources(nsISimpleEnumerator **_retval) { return _to GetDataSources(_retval); } 
  110.  
  111. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  112. #define NS_FORWARD_SAFE_NSIRDFCOMPOSITEDATASOURCE(_to) \
  113.   NS_IMETHOD GetAllowNegativeAssertions(PRBool *aAllowNegativeAssertions) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowNegativeAssertions(aAllowNegativeAssertions); } \
  114.   NS_IMETHOD SetAllowNegativeAssertions(PRBool aAllowNegativeAssertions) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowNegativeAssertions(aAllowNegativeAssertions); } \
  115.   NS_IMETHOD GetCoalesceDuplicateArcs(PRBool *aCoalesceDuplicateArcs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCoalesceDuplicateArcs(aCoalesceDuplicateArcs); } \
  116.   NS_IMETHOD SetCoalesceDuplicateArcs(PRBool aCoalesceDuplicateArcs) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCoalesceDuplicateArcs(aCoalesceDuplicateArcs); } \
  117.   NS_IMETHOD AddDataSource(nsIRDFDataSource *aDataSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDataSource(aDataSource); } \
  118.   NS_IMETHOD RemoveDataSource(nsIRDFDataSource *aDataSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDataSource(aDataSource); } \
  119.   NS_IMETHOD GetDataSources(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataSources(_retval); } 
  120.  
  121. #if 0
  122. /* Use the code below as a template for the implementation class for this interface. */
  123.  
  124. /* Header file */
  125. class nsRDFCompositeDataSource : public nsIRDFCompositeDataSource
  126. {
  127. public:
  128.   NS_DECL_ISUPPORTS
  129.   NS_DECL_NSIRDFCOMPOSITEDATASOURCE
  130.  
  131.   nsRDFCompositeDataSource();
  132.  
  133. private:
  134.   ~nsRDFCompositeDataSource();
  135.  
  136. protected:
  137.   /* additional members */
  138. };
  139.  
  140. /* Implementation file */
  141. NS_IMPL_ISUPPORTS1(nsRDFCompositeDataSource, nsIRDFCompositeDataSource)
  142.  
  143. nsRDFCompositeDataSource::nsRDFCompositeDataSource()
  144. {
  145.   /* member initializers and constructor code */
  146. }
  147.  
  148. nsRDFCompositeDataSource::~nsRDFCompositeDataSource()
  149. {
  150.   /* destructor code */
  151. }
  152.  
  153. /* attribute boolean allowNegativeAssertions; */
  154. NS_IMETHODIMP nsRDFCompositeDataSource::GetAllowNegativeAssertions(PRBool *aAllowNegativeAssertions)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158. NS_IMETHODIMP nsRDFCompositeDataSource::SetAllowNegativeAssertions(PRBool aAllowNegativeAssertions)
  159. {
  160.     return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162.  
  163. /* attribute boolean coalesceDuplicateArcs; */
  164. NS_IMETHODIMP nsRDFCompositeDataSource::GetCoalesceDuplicateArcs(PRBool *aCoalesceDuplicateArcs)
  165. {
  166.     return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168. NS_IMETHODIMP nsRDFCompositeDataSource::SetCoalesceDuplicateArcs(PRBool aCoalesceDuplicateArcs)
  169. {
  170.     return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172.  
  173. /* void AddDataSource (in nsIRDFDataSource aDataSource); */
  174. NS_IMETHODIMP nsRDFCompositeDataSource::AddDataSource(nsIRDFDataSource *aDataSource)
  175. {
  176.     return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178.  
  179. /* void RemoveDataSource (in nsIRDFDataSource aDataSource); */
  180. NS_IMETHODIMP nsRDFCompositeDataSource::RemoveDataSource(nsIRDFDataSource *aDataSource)
  181. {
  182.     return NS_ERROR_NOT_IMPLEMENTED;
  183. }
  184.  
  185. /* nsISimpleEnumerator GetDataSources (); */
  186. NS_IMETHODIMP nsRDFCompositeDataSource::GetDataSources(nsISimpleEnumerator **_retval)
  187. {
  188.     return NS_ERROR_NOT_IMPLEMENTED;
  189. }
  190.  
  191. /* End of implementation class template. */
  192. #endif
  193.  
  194. extern nsresult
  195. NS_NewRDFCompositeDataSource(nsIRDFCompositeDataSource** result);
  196.  
  197. #endif /* __gen_nsIRDFCompositeDataSource_h__ */
  198.